<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>解析管理</title>
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="col-md-12">
			<div class="col-md-2" style="border-right: 5px solid #fff;">
				<div class="row panel panel-info">
					<div class="caption panel-heading">
						<span class="caption-subject font-dark bold uppercase">分析失败统计</span>
					</div>
					<table id="failTab" style="width: 100%;"></table>
				</div>
			</div>
			<div class="col-md-10">
				<div class="row panel panel-info">
					<div class="caption panel-heading">
						<span id="regularTitle" class="caption-subject font-dark bold uppercase"></span>
						<a class="btn btn-primary btn-sm" style="float: right; position: relative;bottom: 5px;" onclick="dealRegular()">
							<i class="fa fa-plus" aria-hidden="true"></i>添加</span>
						</a>
						<select id="entryList" style="float: right;width: 30%;position: relative;bottom: 6px; right:20px" class="form-control" title="---source下相关entry--"></select>
					</div>
					<table id="regularTab"></table>
				</div>
				<div class="row panel panel-info">
					<div class="caption panel-heading">
						<span id="editTitle" class="caption-subject font-dark bold uppercase">新增解析</span>
					</div>
					<table class="table table-striped table-bordered blue dataTable no-footer table-hover" style="margin-top: 0px;">
						<thead>
							<tr>
								<th style="text-align: center; width: 10%" data-field="select"><div class="th-inner ">选择器(select)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 10%" data-field="attr"><div class="th-inner ">属性(attr)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 10%" data-field="regex"><div class="th-inner ">正则(regex)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 10%" data-field="regulartype"><div class="th-inner ">所属类型(regulartype)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 12%" data-field="fieldtype"><div class="th-inner ">选择器类型(selectorType)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 15%" data-field="desc"><div class="th-inner ">说明(desc)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 10%" data-field="fieldtype"><div class="th-inner ">数据类型(fieldtype)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 13%" data-field="dateformat"><div class="th-inner ">日期格式(dateformat)</div><div class="fht-cell"></div></th>
								<th style="text-align: center; width: 10%" data-field=""><div class="th-inner "></div><div class="fht-cell"></div></th>
							</tr>
						</thead>
						<tbody>
							<tr data-index="0">
								<td style="text-align: center;">
									<input id="select" name="select" class="form-control" type="text" autocomplete="off">
								</td>
								<td style="text-align: center;">
									<input id="attr" name="attr" class="form-control" type="text" autocomplete="off">
								</td>
								<td style="text-align: center;">
									<input id="regex" name="regex" class="form-control" type="text" autocomplete="off">
								</td>
								<td style="text-align: center;">
									<select id="regulartype" name="regulartype" class="selectpicker form-control" data-style="form-control" title="---请选择所属类型--">
										<option th:each="regulartype:${regulartypes}" th:value="${regulartype.id}" th:text="${regulartype.desc}"></option>
									</select>
								</td>
								<td style="text-align: center;">
									<select id="selectorType" name="selectorType" class="selectpicker form-control" data-style="form-control" title="---请选择选择器类型--">
										<option value="0">CSS</option>
										<option value="1">XPATH</option>
									</select>
								</td>
								<td style="text-align: center;">
									<input id="desc" name="desc" class="form-control" type="text" autocomplete="off">
								</td>
								<td style="text-align: center;">
									<select id="fieldtype" name="fieldtype" class="selectpicker form-control" data-style="form-control" title="---请选择数据类型--">
										<option value="string">string</option>
										<option value="double">double</option>
										<option value="date">date</option>
										<option value="english_date">english_date</option>
										<option value="second">second</option>
										<option value="millisecond">millisecond</option>
										<option value="desc">desc</option>
									</select>
								</td>
								<td style="text-align: center;">
									<input id="dateformat" name="dateformat" class="form-control" type="text" autocomplete="off">
								</td>
								<td style="text-align: center;">
									<a class="btn btn-primary btn-sm" id="commit" type="0">提交</span></a>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="row panel panel-info">
					<div class="caption panel-heading">
						<span id="htmlTitle" class="caption-subject font-dark bold uppercase"></span>
						<a class="btn btn-primary btn-sm" style="float: right;position: relative;bottom: 5px; right:20px" onclick="resetEntry()">重新解析</a>
					</div>
					<table id="htmlTab"></table>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" th:src="@{/js/appjs/conweb/conweb_v1.js}"></script>
</body>
</html>